<?php

/**
 * @author Charles EDOU NZE <charlesen@live.fr>
 * @copyright Copyright 2011, Charles EDOU NZE
 * @version 1.0
 */
$session = $_POST['session'];

switch ($session) {
    case "login":
        header('Location: ./index2.php');
        break;
    case "logout":
        header('Location: ./index.php');
        break;
}
?>
